
music_table1 = \
(
    ("0=15",),
    #16
    ("3,4:3,4:3,4:3,4=1/16","3,4=1/8", "3,4:3,4=1/16", "2,S2:2,S2=1/16", "2,S2=1/8", "1B=1/4"),

    #17
    ("1B:1A:1A,3:1A=1/8", "1B:1A:1A,3:1A=1/8"),
    ("1A:1A:1A,3:1A=1/8", "1B:1A:1A,3:1B=1/8"),
    ("1B:1A:1A,3:1A=1/8", "1B:1A:1A,3:1A=1/8"),
    ("1A:1A=1/8", "1A,3=1/8", "1A:3=1/16", "2:2:S2:S2=1/16", "4:4:3:1B=1/16"),

    #21
    ("1B:1A:1A,3:1A=1/8", "1B:1A:1A,3:1A=1/8"),
    ("1A:1A:1A,3:1A=1/8", "1B:1A:1A,3:1B=1/8"),
    ("1B:1A:1A,3:1A=1/8", "1B:1A:1A,3:1B=1/8"),
    ("1A:1A=1/8", "1A,3=1/8", "1A:3=1/16", "3=1/8", "2:2=1/16", "S2=1/16", "S2=1/8", "4=1/16"),

    #25
    ("1B:S1:S1,3:S1=1/8", "1A:S1:S1,3:S1=1/8",),
    ("1A:S1:S1,3:S1=1/8", "1A:S1:S1,3:1B=1/8",),
    ("1B:S1:S1,3:S1=1/8", "1A:S1:S1,3:S1=1/8",),
    ("S1:S1=1/8", "S1,3=1/8", "S1:3=1/16", "3:2:S2:3=1/16", "S2:4:3:1B=1/16"),

    #29
    ("1B:S1:S1,3:S1=1/8", "1A:S1:S1,3:S1=1/8",),
    ("1A:S1:S1,3:S1=1/8", "1A:S1:S1,3:1B=1/8",),
    ("1B:S1:S1,3:S1=1/8", "1A:S1:S1,3:S1=1/8",),
    ("3,4:3,4:3,4:3,4=1/16", "3,4=1/8", "3,4:3,4=1/16", "3,4:3,4=1/16", "3,4=1/8"),

    #33
    ("1B:1A:1A,3:1A=1/8", "1A:1A:1A,3:1A=1/8",),
    ("1A:1A:1A,3:1A=1/8", "1A:1A:1A,3:1B=1/8",),
    ("1B:1A:1A,3:1A=1/8", "1A:1A:1A,3:1A=1/8",),
    ("1A:1A=1/8", "1A,3=1/8", "1A:3=1/16", "2:2:S2:S2=1/16", "2:S2:4:1B=1/16"),

    #37
    ("1B:1A:1A,3:1A=1/8", "1A:1A:1A,3:1A=1/8",),
    ("1A:1A:1A,3:1A=1/8", "1A:1A:1A,3:1B=1/8",),
    ("1B:1A:1A,3:1A=1/8", "1A:1A:1A,3:1A=1/8",),
    ("1B=1",),
)

music_table2 = \
(
    ("0=15",),
    #16
    ("0=3/4", "5=1/4"),

    # 21
    ("5:0:5:0=1/4",),
    ("5:0:5=1/4", "0=1/8", "5=1/8",),
    ("5:0:5=1/4", "0=1/8", "5=1/8",),
    ("5=1/4", "0=3/4",),

    # 25
    ("5=1/4", "0=3/16", "5=1/16","5=1/4", "0=3/16", "5=1/16", ),
    ("5=1/4", "0=3/16", "5=1/16","5=1/4", "0=3/16", "5=1/16", ),
    ("5:0:5:0=1/4",),
    ("5:0:0=1/4", "0=3/16", "5=1/16"),

    #29
    ("5:0:5:0=1/4",),
    ("5:0:5=1/4", "0=1/8", "5=1/8"),
    ("5:0:5:0=1/4",),
    ("0=3/4", "5=1/4"),

    #33
    ("5=1/4", "0=3/16", "5=1/16","5=1/4", "0=3/16", "5=1/16", ),
    ("5=1/4", "0=3/16", "5=1/16","5=1/4", "0=3/16", "5=1/16", ),
    ("5:0:5:0=1/4",),
    ("5:0:0=1/4", "0=3/16", "5=1/16"),

    #37
    ("5:0:5:0=1/4",),
    ("5:0:5=1/4", "0=1/8", "5=1/8"),
    ("5:0:5=1/4", "0=1/8", "5=1/8"),
    ("5=1",),
)

import sys
sys.path.append('../../')
sys.path.append('../../../../')
if __name__ == "__main__":
    import drumKit.music_translate as music_translate
    music_parse = music_translate.music_trans([music_table1, music_table2], beat=80)
    music_parse.music_to_play_table()
    music_parse.play_music()